package org.jason.model.article.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@ApiModel("获取文章参数")
public class GetArticlesDto {

    @ApiModelProperty(value = "版块id,默认为1")
    @Min(value = 1, message = "参数不规范")
    private Integer blockId = 1;

    @ApiModelProperty(value = "页数,只适用于最新,默认为第一页")
    @Min(value = 1, message = "参数不规范")
    private Integer page = 1;

    @ApiModelProperty(value = "查询类型:0-推荐(推荐时每次查询的结果均不相同,所以页码无效) 1-最新")
    @Min(0)
    @Max(1)
    private Integer queryType = 0;
}
